package io.renren.modules.news.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.news.dao.TopicDao;
import io.renren.modules.news.entity.TopicEntity;
import io.renren.modules.news.service.TopicService;



@Service("topicService")
public class TopicServiceImpl implements TopicService {

	@Autowired
	private TopicDao topicDao;


	@Override
	public TopicEntity queryObject(Integer id){
		return topicDao.queryObject(id);
	}
	
	@Override
	public List<TopicEntity> queryList(Map<String, Object> map){
		return topicDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return topicDao.queryTotal(map);
	}
	
	@Override
	public void save(TopicEntity topic){
		topicDao.save(topic);
	}
	
	@Override
	public void update(TopicEntity topic){
		topicDao.update(topic);
	}
	
	@Override
	public void delete(Integer id){
		topicDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		topicDao.deleteBatch(ids);
	}
	
}
